﻿<Page x:Class="Samples.Pages.SquarifiedTreeMapsPanelPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="TreeMapsPanel"
      
       xmlns:l="clr-namespace:TreeMaps.Controls;assembly=TreeMaps"
    >
  <Grid>
    <Grid.ColumnDefinitions>
      <ColumnDefinition/>
      <ColumnDefinition/>
    </Grid.ColumnDefinitions>
    <l:SquarifiedTreeMapsPanel Grid.Column="0">
      <Rectangle Fill="Red" l:TreeMapsPanel.Weight="10"/>
      <Rectangle Fill="Blue" l:TreeMapsPanel.Weight="2"/>
      <Rectangle Fill="Gray"  l:TreeMapsPanel.Weight="4"/>
      <Rectangle Fill="Black" l:TreeMapsPanel.Weight="3"/>
      <Rectangle Fill="Yellow"  l:TreeMapsPanel.Weight="5"/>
      <Rectangle Fill="Pink"  l:TreeMapsPanel.Weight="2"/>
      <Rectangle Fill="Cyan" l:TreeMapsPanel.Weight="12"/>
    </l:SquarifiedTreeMapsPanel>
    <TextBlock Grid.Column="1" xml:space="preserve">
&lt;l:SquarifiedTreeMapsPanel Grid.Column="0"&gt;
  &lt;Rectangle Fill="Red" l:TreeMapsPanel.Weight="10"/&gt;
  &lt;Rectangle Fill="Blue" l:TreeMapsPanel.Weight="2"/&gt;
  &lt;Rectangle Fill="Gray"  l:TreeMapsPanel.Weight="4"/&gt;
  &lt;Rectangle Fill="Black" l:TreeMapsPanel.Weight="3"/&gt;
  &lt;Rectangle Fill="Yellow"  l:TreeMapsPanel.Weight="5"/&gt;
  &lt;Rectangle Fill="Pink"  l:TreeMapsPanel.Weight="2"/&gt;
  &lt;Rectangle Fill="Cyan" l:TreeMapsPanel.Weight="12"/&gt;
&lt;/l:SquarifiedTreeMapsPanel&gt;      
    </TextBlock>
  </Grid>
</Page>
